New Functions in Week 3

matrix

{base}

Creates a matrix from the given set of values.

round

{base}

Rounds numbers

as.data.frame

{base}

Functions to check if an object is a data frame, or coerce it if possible.

theme_bw

{GGPLOT2}

A black and white ggplot theme

rbeta

{stats}

Beta Random Number Generating Function

sample

{base}

Takes a sample of the specified size

set.seed

{base}

Initialise a pseudorandom number generator.

get_mode

{rstatix}

Compute the mode in a given vector.

after_stat

{GGPLOT2}

Control aesthetic evaluation. On the module used for displying percent

tabulate

{base}

Counts the number of times each integer occurs in an integer-only vector

xlab

{GGPLOT2}

Label the x axis (ggplot)

runif

{stats}

Draws ranndom numbers from the uniform distribution

grid.arrange

{gridExtra}

Places graphical objects into a rectangular grid

ylab

{GGPLOT2}

Label the y axis (ggplot)

unique

{base}

get unique elements

order

{base}

Get indexes that will sort a vector

rnorm

{base}

Generate random numbers from a normal distribution

which.max

{base}

return index of the largest value in a vector

geom_density

{GGPLOT2}

Generates a density plot

The end!